package com.fang.config.beanInitialize;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * @author Fang Ruichuan
 * @date 2022-12-27 9:15
 */
@Component
public class DoByInitializingBean implements InitializingBean {

    public DoByInitializingBean() {
        System.out.println("DoByInitializingBean constructor");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("InitByInitializingBean do something");
    }
}
